package com.aqie.juc.immutable;

/**
 * 描述：     false
 */
public class FinalStringDemo2 {

    public static void main(String[] args) {
        String a = "wukong2";
        final String b = getDashixiong();
        String c = b + 2; // 通过方法获得,编译器无法获得方法值, 运行时才会生成
        System.out.println(a == c);

    }

    private static String getDashixiong() {
        return "wukong";
    }
}
